package com.exce2;

/**
 * @Author WaveHi
 * @Date 6/8/2021 上午 10:55
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 宠物共有的特性
 */
public class PetD {

    private String name;//宠物的名称
    private  int age;//宠物年龄

    public void setName(String name) {

        this.name = name;

    }

    public String getName() {

        return name;

    }

    public void setAge(int age) {

        this.age = age;

    }

    public int getAge() {

        return age;

    }

}
